pre {
  border-radius: 8px;
  margin: 0;
  overflow-x: auto;

  .pre-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #343541;
    padding: 8px;
    color: #d9d9e3 !important;
    font-size: 12px;

    .code-block-header__copy {
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      user-select: none;

      .copy-img {
        width: 24px;
        height: 24px;
      }
    }
  }
}

pre,
table {
  margin: 7px 0;
}

pre code {
  font-size: 14px;
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}

pre .hljs-comment,
pre .hljs-quote {
  color: #aaaaaa;
}

pre .hljs-variable,
pre .hljs-template-variable,
pre .hljs-attribute,
pre .hljs-tag,
pre .hljs-name,
pre .hljs-regexp,
pre .hljs-link,
pre .hljs-decorator,
pre .hljs-selector {
  color: #e9c46a;
}

pre .hljs-string,
pre .hljs-builtin,
pre .hljs-char,
pre .hljs-meta-string {
  color: #2a9d8f;
}

pre .hljs-number,
pre .hljs-symbol,
pre .hljs-bullet,
pre .hljs-subst,
pre .hljs-formula {
  color: #e76f51;
}

pre .hljs-title,
pre .hljs-section {
  color: #268bd2;
}

pre .hljs-keyword,
pre .hljs-selector-tag,
pre .hljs-built_in,
pre .hljs-name,
pre .hljs-type {
  color: #d55e00;
}

pre .hljs-emphasis {
  font-style: italic;
}

pre .hljs-strong {
  font-weight: bold;
}

::v-deep .chat-bot {
  table {
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    /* 消除单元格之间的空隙 */
    border-collapse: collapse;
    /* 消除掉外边框 */
    border-style: hidden;
    /* hack一下加个阴影 */
    box-shadow: 0 0 0 1px #e0e0e0;

    thead {
      text-align: center;

      tr:nth-child(2n + 1) {
        background-color: #fafafa;
      }
    }

    tbody {
      tr:nth-child(2n) {
        background-color: #fafafa;
      }

      tr:nth-child(2n + 1) {
        background-color: #fff;
      }
    }

    th,
    td {
      padding: 12px 15px;
      text-align: left;
      border: 1px solid #e0e0e0;
      /* 单元格底部边框 */
    }

    tr:nth-child(even) {
      background-color: #fcfcfc;
    }
  }
}
